<template>
	<view class="content">
		<view class="Nav" style="display: flex;align-items: center;background: transparent;opacity: 1;padding: 113rpx 30rpx 35rpx 30rpx;position: fixed;top: 0;
			left: 0;width: 100%;">
			<u-icon name="arrow-left" size="40rpx" color="#fff" @click="Goback"></u-icon>
			<view style="font-weight: bold;font-size: 36rpx;color: #FFFFFF;margin-left: 244rpx;">
				购物积分
			</view>
			<view style="font-size: 32rpx;color: #FFFFFF;flex:1;text-align: right;"
				@click="navigateToHandle('/pages/member/buypoint/index')">
				积分明细
			</view>
		</view>
		<view style="height:193rpx ;">

		</view>
		<view class="IconIcon" style="display: flex;align-items: center;flex-direction: column;">
			<image src="/static/jf.png" style="width: 280rpx;height: 280rpx;margin-top: 114rpx;" mode=""></image>
			<view style="margin: 30rpx 0 20rpx 0;font-size: 32rpx;color: #fff; ">
				积分总额
			</view>
			<view style="font-size: 80rpx;font-weight: bold;color: #fff;margin-bottom: 96rpx;">
				{{data}}
			</view>
			
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				data: [],
				dhmoney: '',
				show: false,
				bl: this.$store.state.config.point_balance
			}
		},
		onLoad() {
			this.getlist()
		},
		computed: {
			money() {
				let data = this.dhmoney / this.bl
				return data.toFixed(2)
			}
		},
		methods: {
			Subdh() {
				this.show = false
			},
			close() {
				this.show = false
			},
			
			Toshow() {
				this.show = true
			},
			Goback() {
				uni.navigateBack()
			},
			getlist() {
				this.$api.userInfo({}, res => {
					if (res.status) {
						this.data = res.data.buypoint
					}
				})
			},
			navigateToHandle(e) {
				uni.navigateTo({
					url: e
				})
			}

		}
	}
</script>

<style scoped lang="scss">
	.dh {
		padding: 20rpx 220rpx;
		border-radius: 20rpx;
		background: linear-gradient(180deg, #F2D7AA 0%, #DEBC86 100%);
		box-shadow: 0rpx 10rpx 40rpx rgba(0, 0, 0, 0.53);

	}

	.ShowBox {
		width: 635rpx;
		height: 607rpx;
		border-radius: 30rpx;
		background: #181818;

		.Title {
			text-align: center;
			padding-top: 27rpx;
			padding-bottom: 37rpx;
			color: #fff;
			border-bottom: 1px solid #b9b9b920;
		}

		.InputBox {
			padding: 82rpx 30rpx 0;

			.Line {
				margin-top: 51rpx;
			}

			margin-bottom: 19rpx;
		}

		.Tips {
			text-align: center;
			color: #fff;

			text {
				color: #F2D7AAFF;
			}
		}

		.OK {
			margin: 0 40rpx;
			padding: 21rpx 0;
			text-align: center;
			margin-top: 88rpx;
			background: linear-gradient(180deg, #F2D7AA 0%, #DEBC86 100%);
			border-radius: 10rpx;
		}
	}
</style>